﻿@{
    Layout = "~/themes/bootstrap/Shared/_Layout.cshtml";
}
@using UcAsp.Net.Model;
@using UcAsp.Net.BLL;
@using UcAsp.Net.Comm

@{
    UcAsp.Net.Model.Categories cate = ViewData["Categories"] as UcAsp.Net.Model.Categories;
    ViewBag.Title = cate.CategorieName + cate.KeyWords;
}
@model List<UcAsp.Net.Model.ArticelsViews>
<div class="container-fluid">
    @foreach (UcAsp.Net.Model.ArticelsViews art in Model)
    { 
        <a href="/@art.CagegorieShowPath/@if (string.IsNullOrEmpty(art.ShowPath))
                                         {@art.ID<text>.shtml</text>}
                                         else
                                         {@art.ShowPath<text>.shtml</text>}">
            @(UcAsp.Net.Comm.Utils.ClearPart(art.Title, 20))<br />
        </a>
    }

    @for (int i = 1; i < Convert.ToInt32(ViewData["PageCount"]); i++)
    { 
        <a href="/@cate.ShowPath/@cate.ShowPath@{<text>.shtml</text>}?i=@i">@i</a>
    }
</div>
